from  data.SqlHelper import SqlHelper


try:
    sqlhelper = SqlHelper()
    sqlhelper.init_db()
    print('初始化成功')
except Exception as e:
    print(e)



tmp = sqlhelper.select(10)
#tmp = sqlhelper.update({'bookName': '绝世唐门'}, {'bookAuthor': '三少'})
if len(tmp) == 0:
    print('Not find')
else:
    print(tmp[3])